import axios from '@/assets/js/axios'
// 获取首页列表
export const getBlackList = data => {
  return axios.request({
    url: '/w/index',
    data,
    method: 'post'
  })
}

// 获取地图
export const getMap = data => {
  return axios.request({
    url: '/w/agency/index/map',
    data,
    method: 'post'
  })
}

// 获取企业列表
export const getComList = data => {
  return axios.request({
    url: '/w/dsc/comp/list',
    data,
    method: 'post'
  })
}

// 获取人员列表
export const getPerList = data => {
  return axios.request({
    url: '/w/dsc/person/list',
    data,
    method: 'post'
  })
}

// 获取项目列表
// export const getProList = data => {
//   return axios.request({
//     url: '/w/dsc/project/list',
//     data,
//     method: 'post'
//   })
// }


// 获取相册图片
export const getPic = data => {
  return axios.request({
    url: '/w/des/pic2',
    data,
    method: 'post'
  })
}

// 下面获取企业主页
export const getComDetail = data => {
  return axios.request({
    url: '/w/des/comdetail',
    data,
    method: 'post'
  })
}

// 获取企业分支机构
export const getComBranch = data => {
  return axios.request({
    url: '/w/des/qiyeall',
    data,
    method: 'post'
  })
}
// 获取企业主页人员列表
export const getPullStaff = data => {
  return axios.request({
    url: '/w/des/qiyeall',
    data,
    method: 'post'
  })
}
// 获取企业主页综合评分
export const getEvaluate = data => {
  return axios.request({
    url: '/w/des/zonghe',
    data,
    method: 'post'
  })
}


//获取人员基本信息
export const getBaseInfo = id => {
  return axios.request({
    url: '/w/dsc/person/baseInfo',
    params: {
      staffId: id
    },
    method: 'post'
  })
}

//获取人员当前行为限制
export const getTableCbr = data => {
  return axios.request({
    url: '/w/dsc/person/tableCbr',
    data,
    method: 'post'
  })
}

//获取人员证书信息
export const getTableInfo = data => {
  return axios.request({
    url: '/w/dsc/person/tableInfo',
    data,
    method: 'post'
  })
}

//获取人员信用行为
export const getBehavior = data => {
  return axios.request({
    url: '/w/dsc/person/tableBehavior',
    data,
    method: 'post'
  })
}

//获取人员工作履历
export const getWorkHistory = data => {
  return axios.request({
    url: '/w/dsc/person/workHistory',
    data,
    method: 'post'
  })
}

//获取人员业绩
export const getTableSta = data => {
  return axios.request({
    url: '/w/dsc/person/tableSta',
    data,
    method: 'post'
  })
}

//获取项目详情
export const getConDetail = data => {
  return axios.request({
    url: '/w/des/conProjectDetail',
    data,
    method: 'post'
  })
}
//获取项目发包
export const getConFabao = data => {
  return axios.request({
    url: '/w/des/fabao',
    data,
    method: 'post'
  })
}

//获取项目工程详情
export const getProDetail = data => {
  return axios.request({
    url: '/w/dsc/project/detail/info',
    data,
    method: 'post'
  })
}
